package com.bawei.user

import android.os.Bundle
import android.webkit.WebViewClient
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.bawei.base.mvvm.BaseActivity
import com.bawei.base.mvvm.BaseViewActivity
import com.bawei.user.databinding.ActivityWebBinding

@Route(path = "/user/WebActivity")
class WebActivity : BaseViewActivity<ActivityWebBinding>() {
    @Autowired
    @JvmField
    var url = ""
    //
    override fun getLoutyId(): Int {
        return R.layout.activity_web
    }

    override fun initView() {
       ARouter.getInstance().inject(this)
        //
        binding.wv.loadUrl(url)
        binding.wv.webViewClient = WebViewClient()
    }

    override fun initDate() {

    }

}